// 引入全局组件
import i18n from '@/i18n'
import router from '@/router'
// arco-design
import ArcoVue from '@arco-design/web-vue';

// 额外引入图标库
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import { createPinia } from 'pinia'
import { createApp } from 'vue'
import App from './App.vue'

import '@arco-design/web-vue/dist/arco.css';

// 引入默认样式
import '@/assets/css/reset.scss'

import 'virtual:uno.css'

async function bootstrap() {
  const app = createApp(App)

  app.use(createPinia())
  app.use(router)

  // i18n
  app.use(i18n)

  // arco-design
  app.use(ArcoVue);
  app.use(ArcoVueIcon);

  // 全局组件

  // https://next.router.vuejs.org/api/#isready
  // await router.isReady()

  app.mount('#app')
}

bootstrap()
